<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="cleartype" content="on">
<title><?php echo $share['desc'] ?></title>

<link href="__PUBLIC__/plugins/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/themes/wechat/cupid/style.css" rel="stylesheet">
<link href="__PUBLIC__/themes/global/global.css" rel="stylesheet">

<script src="__PUBLIC__/plugins/jquery/2.1.3/jquery.min.js"></script>
<script src="__PUBLIC__/plugins/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/plugins/wxshare/wxshare.js"></script>
<script src="__PUBLIC__/js/wechat/cupid/result.js"></script>
<script>
$(function(){
  Result.init(<?php echo json_encode( $config ) ?>);
  $('.container').css( 'minHeight' , $(window).height() );
});
function onBridgeReady(){
  WeixinJSBridge.call('showOptionMenu');
}

if (typeof WeixinJSBridge == "undefined"){
  if( document.addEventListener ){
    document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
  }else if (document.attachEvent){
    document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
    document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
  }
}else{
  onBridgeReady();
}
</script>
</head>
<body>
<div class="body" style="display:none" >
  <img src="<?php echo U('Public/themes/wechat/cupid/images/share_icon.jpg' , '' , true , true ) ?>" >
</div>
<div class="container result">
  <div class="icon icon-left">
    <img src="<?php echo U( $user_award_data['beauty_icon'] ) ?>">
    <span><?php echo $user_award_data['beauty_name'] ?></span>
  </div>
  
  <div class="icon icon-right">
    <?php if ( !empty($user_data['icon']) ) :?>
    <img src="<?php echo $user_data['icon'] ?>">
    <?php else : ?>
    <img src="__PUBLIC__/themes/wechat/cupid/images/default_icon.png">
    <?php endif ; ?>
    <span><?php echo $user_data['nickname']?></span>
  </div>
  
  <div class="point"><?php echo $user_award_data['point'] ?></div>
  
  <div class="result_text">
    <?php echo $user_award_data['award_text'] ?>
  </div>
  
  <div class="result-award-btn-line">
    <a class="block-btn block-btn-take-award" href="<?php echo $rule_url ?>">领取5元话费</a>
  </div>
  
  <div class="result-btn-line">
    <a class="circle-btn circle-btn-to-index" href="<?php echo $index_url ?>" style="margin-right:160px">我也要玩</a>
    <a class="circle-btn circle-btn-share" id="to_share_btn" href="#">我要分享</a>
  </div>
</div>

<div class="share_modal">
  <img src="__PUBLIC__/themes/wechat/cupid/images/bg_tips.png" >
</div>
</body>
</html>